package net.udp;

import java.net.DatagramSocket;

public class UDPPortScanner
{
	public static void main(String[] args)
	{
		for (int i = 0; i < 65535; i++)
		{
			try
			{
				DatagramSocket server = new DatagramSocket(i);
				server.close();
			}
			catch (Exception e)
			{
				System.out.println(i+"can not use.");
			}
		}
	}
}
